// 公共样式文件
@use './variables.scss' as *;
@use './mixins.scss' as *;

// ==================== 通用类 ====================
// Flex 布局
.flex {
  display: flex;
}

.flex-center {
  @include flex-center;
}

.flex-between {
  @include flex-between;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

// 文字对齐
.text-left {
  text-align: left;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

// 文字溢出
.ellipsis {
  @include ellipsis;
}

.ellipsis-2 {
  @include multi-ellipsis(2);
}

.ellipsis-3 {
  @include multi-ellipsis(3);
}

// 间距
.m-0 {
  margin: 0;
}
.mt-10 {
  margin-top: 10px;
}
.mt-20 {
  margin-top: 20px;
}
.mb-10 {
  margin-bottom: 10px;
}
.mb-20 {
  margin-bottom: 20px;
}
.ml-10 {
  margin-left: 10px;
}
.ml-20 {
  margin-left: 20px;
}
.mr-10 {
  margin-right: 10px;
}
.mr-20 {
  margin-right: 20px;
}

.p-0 {
  padding: 0;
}
.p-10 {
  padding: 10px;
}
.p-20 {
  padding: 20px;
}
.pt-10 {
  padding-top: 10px;
}
.pt-20 {
  padding-top: 20px;
}
.pb-10 {
  padding-bottom: 10px;
}
.pb-20 {
  padding-bottom: 20px;
}
.pl-10 {
  padding-left: 10px;
}
.pl-20 {
  padding-left: 20px;
}
.pr-10 {
  padding-right: 10px;
}
.pr-20 {
  padding-right: 20px;
}

// 文字颜色
.text-primary {
  color: $text-primary;
}
.text-regular {
  color: $text-regular;
}
.text-secondary {
  color: $text-secondary;
}
.text-placeholder {
  color: $text-placeholder;
}

// 主题颜色
.color-primary {
  color: $primary-color;
}
.color-success {
  color: $success-color;
}
.color-warning {
  color: $warning-color;
}
.color-danger {
  color: $danger-color;
}
.color-info {
  color: $info-color;
}

// 背景色
.bg-primary {
  background-color: $primary-color;
}
.bg-success {
  background-color: $success-color;
}
.bg-warning {
  background-color: $warning-color;
}
.bg-danger {
  background-color: $danger-color;
}
.bg-info {
  background-color: $info-color;
}

// 字体大小
.font-12 {
  font-size: 12px;
}
.font-14 {
  font-size: 14px;
}
.font-16 {
  font-size: 16px;
}
.font-18 {
  font-size: 18px;
}
.font-20 {
  font-size: 20px;
}

// 字体粗细
.font-normal {
  font-weight: normal;
}
.font-bold {
  font-weight: bold;
}

// 鼠标样式
.cursor-pointer {
  cursor: pointer;
}
.cursor-not-allowed {
  cursor: not-allowed;
}

// 显示/隐藏
.hidden {
  display: none !important;
}
.invisible {
  visibility: hidden;
}

// 禁用选择
.no-select {
  @include no-select;
}
